package com.chaos.eurekaproducer.test;

/**
 * @author liaopeng
 * @title: Book
 * @projectName eureka-producer
 * @description: TODO
 * @date 2021/7/30上午10:39
 */
public class Book {
    public static void main(String[] args)
    {
        staticFunction();
    }
    static Book book = new Book();
    static
    {
        System.out.println("书的静态代码块");
    }
    {
        System.out.println("书的普通代码块");
    }
    Book()
    {
        System.out.println("书的构造方法");
        System.out.println("price=" + price +",amount=" + amount);
    }
    public static void staticFunction(){
        System.out.println("书的静态方法");
    }
    int price = 110;
    static int amount = 112;
}
